package cn.factorybox.item.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.text.ParseException;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-05-25 9:09
 */
public interface CameraService {

    boolean savePic(MultipartFile file, String deviceId) throws IOException;

    Map<String, Object> getTodayCount(String deviceID);

    Map<String, Object> selectPicList(Map<String, Object> map) throws ParseException;

    Map<String, Object> selectAllDayList(Map<String, Object> map) throws ParseException;

    int addDevice(Map<String, Object> map);

    int updateDevice(Map<String, Object> map);

    Map<String, Object> selectList();

}
